package com.javasm.adminapi.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

@Configuration
@EnableAspectJAutoProxy//开启AOP
@EnableTransactionManagement//开启了事务注解
public class ServerConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
